<script id="template_keyword" type="text/html">
    <tr class="active keyword_row gradeX recommend" id="keyword_<%=data.keyword_id%>"
        data-keyword_id="<%=data.keyword_id%>"
        data-campaign_id="<%=data.campaign_id%>"
        data-adgroup_id="<%=data.adgroup_id%>"
        data-item_id="<%=data.num_iid%>"
        data-matchscope="<%=data.matchscope%>"
        data-mobile_is_default_price="<%=data.mobile_is_default_price%>"
        data-word="<%=data.word%>">
        <td width="42px" class="center nolborder">
            <input value="<%=data.keyword_id%>" id="k_check_<%=data.keyword_id%>"  name="keyword_id" type="checkbox" class="keyword_id checkit">
        </td>

        <td width="76px" class="center word">
			<span class="str">
                <%if(data.matchscope == 1){%>（<%}%>
                <%if(data.matchscope == 2){%>"<%}%>
				<%=data.word%>
                <%if(data.matchscope == 1){%>）<%}%>
                <%if(data.matchscope == 2){%>"<%}%>
			</span>
            <input type="hidden" value="<%=data.word%>" name="word" class="row_word"/>
			<span class="actions">
				<span class="label label-important"></span>
				<span class="label label-warning"></span>
				<span class="label label-success"></span>
			</span>
        </td>
        <%if(!filter || filter.title){%>
        <td width="170px">
            <div class="imgtxt60">
                <div class="photo">
                    <a class="img60" href="http://item.taobao.com/item.htm?id=<%=data.num_iid%>" target="_blank">
                        <img src="<%=data.pic_url%>" alt="<%=data.title%>">
                    </a>
                </div>
                <p class="title">
                    <a href="http://item.taobao.com/item.htm?id=<%=data.num_iid%>" target="_blank"><%=data.title%></a>
                </p>
            </div>
        </td>
        <%}%>
        <td width="43px" class="center num sortable"><%=data.impressions || '--'%></td>
        <td width="43px" class="center num sortable"><%=data.click || '--'%></td>
        <td width="43px" class="center num sortable"><%=data.ctr || '--'%>%</td>
        <td width="44px" class="center num sortable">￥<%=data.cpc || '--'%></td>
        <td width="44px" class="center num sortable"><%=data.cvr || '--'%>%</td>
        <td width="44px" class="center num sortable"><%=data.avgpos || '--'%></td>
        <td width="44px" class="center num sortable"><span class="realtimeRank"></span></td>
        <td width="44px" class="center num sortable"><%=data.qscore || '--'%></td>
        <td width="44px" class="center num sortable"><%= (data.wireless_qscore > 0) ? data.wireless_qscore : '--' %></td>
        <td width="44px" class="center num sortable orange">￥<%=data.cost || '--'%></td>
        <td width="44px" class="center num sortable orange">￥<%=data.sales || '--'%></td>
        <td width="44px" class="center num sortable orange"><%=data.total_pay_count || '--'%></td>
        <td width="44px" class="center num sortable orange"><%=data.roi || '--'%></td>
        <td width="44px" class="center num sortable "><%=data.fav_count || '--'%></td>
        <td width="44px" class="center num sortable "><%=data.fav_count_rate || '--'%>%</td>
        <td width="44px" class="center num sortable "><%=data.cart_total || '--'%></td>
        <td width="44px" class="center num sortable insert-starter"><%=data.cart_total_rate || '--'%>%</td>
        <td width="46px" class="center">
            <div class="input-prepend small-price">
                <span class="add-on">￥</span>
                <input class="price smallprice currencyinput keyword_price" type="text" name="price" id="default_price" value="<%=data.max_price%>" style="width:35px"  />
            </div>
			<span class="adjustPriceInfo"></span>
        </td>
        <td width="46px" class="center">
            <div class="input-prepend small-price">
                <%if(data.mobile_is_default_price == 0){%>
                <span class="add-on">折</span>
                <%}%>
                <span class="add-on">￥</span>
                <input class="price smallprice currencyinput keyword_mobile_price" type="text" name="price" id="max_mobile_price" value="<%=data.max_mobile_price%>" style="width:35px"  />
            </div>
			<span class="adjustPriceInfo"></span>
        </td>
        <td width="44px" class="center num sortable dynamic" dynamic-column="q_impressions"></td>
        <td width="44px" class="center num sortable dynamic" dynamic-column="q_cvr"></td>
        <td width="44px" class="center num sortable dynamic" dynamic-column="q_cpc"></td>
        <td width="44px" class="center num sortable dynamic" dynamic-column="q_roi"></td>
        <td width="44px" class="center num sortable dynamic" dynamic-column="q_competition"></td>
        <td width="77px" class="center">
            <a class="btn btn3 btn-nobg btn_trash_s deleteKeyword tooltip" data-keyword_id="<%=data.keyword_id%>" title="删除这个关键词">删除</a>
            <a class="btn btn3 btn-nobg btn_book_s viewKeywordHistory" data-keyword_id="<%=data.keyword_id%>" href="javascript:void(0);" title="查看关键词历史">查看</a>
            <a class="btn btn3 btn-nobg btn_refresh_s ignoreChanges tooltip" data-keyword_id="<%=data.keyword_id%>" title="取消当前所有操作">撤销</a>
        </td>
    </tr>
</script>